package controller;

import java.sql.SQLException;

import db.DBOffer;
import db.IFOffer;

import model.Service;

public class OfferController extends ServiceController
	{
		private static OfferController instance = null;
		
		public static OfferController getInstance()
			{
				if(instance == null)
					instance = new OfferController();

				return instance;
			}
		
		public Service searchOfferByID(int offerID) throws SQLException
		{
			IFOffer dbOffer = new DBOffer();
			return dbOffer.searchOfferByID(offerID);
		}
	}
